<h1>Edit Player</h1>
 
<%= form_for :player, url: club_player_path, method: "patch" do |f| %>
  <p>
    <%= f.label :first_name %><br>
    <%= f.text_field :first_name %>
  </p>
  <p>
    <%= f.label :last_name %><br>
    <%= f.text_field :last_name %>
  </p>
  <p>
    <%= f.label :age %><br>
    <%= f.text_field :age %>
  </p>
  <p>
    <%= f.label :last_score %><br>
    <%= f.text_field :last_score %>
  </p>
  <p>
    <%= f.label :average_score %><br>
    <%= f.text_field :average_score %>
  </p>
  <p>
    <%= f.label :price %><br>
    <%= f.text_field :price %>
  </p>
  <p>
    <%= f.submit %>
  </p>
<% end %>

<%= link_to 'Back to club', club_path(@club) %>